package com.iot.http2.service.impl;

import com.iot.http2.service.InnerService;
import com.iot.http2.service.InnerService2;
import com.iot.http2.vo.DemoDTO;
import com.iot.http2.vo.DemoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 内部服务
 *
 * @author guoguoqiang
 * @since 2020年11月30日
 */
@Service
public class InnerServiceImpl implements InnerService {
    private InnerService2 innerService2;

    @Autowired
    public InnerServiceImpl(InnerService2 innerService2) {
        this.innerService2 = innerService2;
    }

    @Override
    public String inner1(String name) {
        return "inner:" + name;
    }

    @Override
    public DemoVO callInner2(DemoDTO dto) {
        return innerService2.inner2(dto);
    }

}
